package com.slj.service.impl;

import com.slj.entity.BookTypes;
import com.slj.mapper.BookMapper;
import com.slj.mapper.BookTypesMapper;
import com.slj.service.BookTypesService;
import lombok.RequiredArgsConstructor;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
@RequiredArgsConstructor
public class BookTypesServiceImpl implements BookTypesService {
    private  final BookTypesMapper bookTypesMapper;

    /**
     * 获取所以书籍类型
     */
    @Override
    public List<BookTypes> getBookTypes() {
        List<BookTypes> bookTypes = bookTypesMapper.getBookTypes();
        return  bookTypes;
    }
}
